package com.pcbly.web.persistence.table;

import java.util.List;

import com.pcbly.web.bean.table.TableBean;
import com.pcbly.web.bean.table.TableChildBean;
import com.pcbly.web.persistence.BaseDao;

public interface TableDao extends BaseDao<TableBean> {
	List<TableBean> findTableBeansFromDatabase() throws Exception;

	List<TableBean> getTableBeans() throws Exception;

	void saveTableBean(TableBean bean) throws Exception;

	void updateTableBean(TableBean bean) throws Exception;

	void saveTableBeans(List<TableBean> beans) throws Exception;

	void updateTableBeans(List<TableBean> beans) throws Exception;

	void deleteTableBeansById(String id) throws Exception;

	void deleteTableBeans(List<TableBean> beans) throws Exception;

	List<TableChildBean> findTableChildBeans() throws Exception;

	boolean checkName(String name) throws Exception;

	List<TableBean> findTableBeansByTableIds(String tableIds) throws Exception;

	String getTableBeanFromDataBase(String tableName) throws Exception;
}
